Skip to content

Expose relaxation factor#264

Open
kevinsmia1939 wants to merge 1 commit intojaheyns:masterfrom
kevinsmia1939:add_relaxation_solver
Open

Expose relaxation factor#264
kevinsmia1939 wants to merge 1 commit intojaheyns:masterfrom
kevinsmia1939:add_relaxation_solver

Conversation

@kevinsmia1939
Copy link
Copy Markdown
Contributor

@kevinsmia1939 kevinsmia1939 commented Apr 19, 2026

Add RelaxationU, RelaxationP, RelaxationH, RelaxationTurbulence, RelaxationRho properties to solver object under a Relaxation group

Update all test reference fvSolution files to match template changes

Let me know if you prefer not to add this or put it in different place.
Screenshot_20260419_191025

The resulting relaxation factors will be written to fvSolutions like this for example.

relaxationFactors
{
    equations
    {
        U               0.1;
        UFinal          1;
        k               0.1;
        kFinal          1;
        omega           0.1;
        omegaFinal      1;
    }
    fields
    {
        p               1;
    }
}

All test pass except #262 which need to be merge first.

- Add RelaxationU, RelaxationP, RelaxationH, RelaxationTurbulence,
  RelaxationRho properties to solver object under a Relaxation group
- Wire properties through fvSolution template for both steady-state
  and transient (non-Final) relaxation factors
- Update all test reference fvSolution files to match template changes
- Bump version to 1.34.18
@oliveroxtoby
Copy link
Copy Markdown
Collaborator

Could I request to name these "URelaxation, pRelaxation, rhoRelaxation etc, so that the capitalisation of the variable can more naturally match the actual variable naming?
Also, perhaps energyRelaxation instead of hRelaxation as we could be solving for h, e, or T in future depending on the situation, and this could cover all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants